

import 'package:exsun_plate_app/mvp/model/get_code_entity.dart';
import 'package:exsun_plate_app/mvp/model/login_model.dart';
import 'package:exsun_plate_app/mvp/mvp.dart';

abstract class LoginPresenter implements IPresenter{
  login(String userName,String password);
  getCode(String phone);
}

abstract class LoginView implements IView<LoginPresenter>{
  onLoginSuccess(LoginModel model);
  onLoginFail(String errorMsg);
  onCodeSuccess(GetCodeEntity model);
  onCodeFail(String errorMsg);

}